const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    port: 80, // 端口
    host: "0.0.0.0",
    proxy: {
        '/api': {
            // target: 'http://127.0.0.1:8081/',
            target: 'https://mangoytree.tingdao.com/api/',
            // target: 'http://apis.bnxf.net/', //接口域名线上
            //target: 'http://api.ypcms1.com/api/', //接口域名本地
            changeOrigin: true,             //是否跨域
            ws: true,                       //是否代理 websockets
            secure: true,                   //是否https接口
            pathRewrite: {                  //路径重置
                '^/api': ''
            }
        }
    }
}
})
